package com.loser.csp.webapp.backcontroller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.loser.csp.dal.model.Category;
import com.loser.csp.service.backmanager.CategoryServices;
/**
 * 
 * 
 * @author jun.li
 * @version $Id: CategoryController.java, v 0.1 2014-2-24 下午2:50:54 jun.li Exp $
 */
@Controller
public class CategoryController {
    
    @Autowired
    private CategoryServices categoryServices;
    @RequestMapping(value="/category.html",method={RequestMethod.POST,RequestMethod.GET})
    public String insert(ModelMap modeMap){
        Category  category=new Category();
        
        categoryServices.insert(category);
        return "category";
        
    }

}
